package com.zhiyou100.taxi.service;

import com.github.pagehelper.PageInfo;
import com.zhiyou100.taxi.entity.Customer;

import java.util.List;

/**
 * @author zhaokuii11@163.com
 * @create 2021-11-23 22:05
 * @Description
 */
public interface CustomerService {

    //获取所有客户
    List<Customer> getAll();

    //保存客户的信息
    Integer saveCustomer(Customer customer);

    //根据身份证查询客户的信息
    Customer getCustomerByPid(String pid);

    //查询主键
    String getPrimaryKey();

    //根据 用户 id删除
    int deletePrimaryKey(String customerId);

    //根据主键获取用户信息
    Customer getCustomerByPrimaryKey(String id);

    PageInfo<Customer> getAllPage(Integer pageNum);

    //更新用户
    int updateOne(Customer customer);
}
